package com.zhisolution.zhicms.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;
import com.zhisolution.zhicms.util.SqlResult;

@SuppressWarnings("serial")
public class sys_user extends Model<sys_user> {
	public static final sys_user dao = new sys_user();

	public List<sys_user> searchNameANDPassword(String name, String password) {
		StringBuffer str = new StringBuffer();
		str.append("select * from sys_user where user_name=");
		str.append(SqlResult.toValue(name));
		str.append(" and password=");
		str.append(SqlResult.toValue(password));
		return dao.find(str.toString());
	}
}
